<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>模拟数据实现选项卡</title>
  <link rel="stylesheet" href="./index.css">
</head>
<style>

</style>
<body>
  <div id="myTab" data='[{"tab":"选项1","page":"页面1"},{"tab":"选项2","page":"页面2"},{"tab":"选项3","page":"页面3"}]'></div>
</body>
<script src="./utils.js"></script>
<script src="./tpl.js"></script>
<script src="./myTab.js"></script>
<script>
  new myTab("myTab").init();
</script>
</html>